<template>
    <div>
        <template>
            <el-table
                    :data="tableData"
                    style="width: 100%">
                <el-table-column
                        prop="uID"
                        label="id"
                        width="180">
                </el-table-column>
                <el-table-column
                        prop="uName"
                        label="姓名"
                        width="180">
                </el-table-column>
                <el-table-column
                        prop="uPhone"
                        label="手机号">
                </el-table-column>
                <el-table-column
                        prop="uAccount"
                        label="账户"
                >
                </el-table-column>

                <el-table-column>
                    <template slot-scope="scope">
                        <el-button type="primary" size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
                        <el-button size="small" type="danger" @click="handleDelete(scope.$index, users)">删除</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </template>

    </div>
</template>
        <script>
            export default {
                data() {
                    return {
                        tableData: [{
                            date: '',
                            name: '',
                            address: ''
                        }, {
                            date: '',
                            name: '',
                            address: ''
                        }, {
                            date: '',
                            name: '',
                            address: ''
                        }],
                        loading: true
                    };
                },
                created() {
                    var _this=this;
                    this.$axios.post('/adminuser').then(resp=>{
                        _this.tableData =resp.data.result
                        console.log(_this.tableData)
                    })
                }
            };
        </script>
